﻿using Kaiser.Models;
using Kaiser.Modules.Cubic.DomainModel.Board;
using Kaiser.Modules.Cubic.Repositories;
using Kaiser.Modules.Cubic.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaiser.Modules.Cubic.Services.Impl
{
    public class MessageService : IMessageService
    {
        public DataGrid<Message> Search(MessageSearch search, PagingInfo pageinfo)
        {
            try
            {
                return RepositoriesFactory.CreateIMessageRepositorie().Search(search, pageinfo);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
